package com.ingesup.dao;

import java.util.List;

import com.ingesup.entities.Contact;

/**
 * @author FDEJEAN
 */

public class ContactDaoImpl extends GenericDaoImpl<Contact> implements ContactDao{

	public ContactDaoImpl(Class<Contact> type) {
		super(type);
	}
	
	
	
	/**
	 * {@inheritDoc}
	 */
	public List<Contact> getAll() {
		return em.createNamedQuery("getAllContacts", Contact.class).getResultList();
	}



	@Override
	public Contact create(Contact toCreate) {
		// TODO Auto-generated method stub
		return super.create(toCreate);
	}



	@Override
	public Contact read(long id) {
		// TODO Auto-generated method stub
		return super.read(id);
	}



	@Override
	public void update(Contact toUpdate) {
		// TODO Auto-generated method stub
		super.update(toUpdate);
	}



	@Override
	public void delete(Contact toDelete) {
		// TODO Auto-generated method stub
		super.delete(toDelete);
	}
}
